package com.shuai.chatroom.mapper;

import com.shuai.chatroom.entity.FriendInfo;
import com.shuai.chatroom.entity.vo.FriendInfoVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface FriendMapper {
    List<FriendInfoVO> getFriendList(@Param("uId") Integer uId);

    int isFriend(@Param("uid") Integer uId, @Param("fId") Integer fId);


    /**
     * 新增好友关系
     */
    int addFriendRelationShip(FriendInfo friendInfo);
}
